/*
package com.ruoyi.common.swagger.config;

import io.swagger.annotations.ApiOperation;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

@Configuration
@EnableSwagger2WebMvc
public class Swagger{
    
    @Bean(value = "defaultApi")
    public Docket defaultApi() {
        Docket docket = new Docket(DocumentationType.SWAGGER_2)
                                .apiInfo(apiInfo())
                                //分组名称
                                .groupName("2.X版本")
                                .select()
                                //这里指定Controller扫描包路径
//                .apis(RequestHandlerSelectors.basePackage("com.github.xiaoymin.knife4j.controller"))
                                //这里指定扫描有ApiOperation注解的类
                                .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
                                //所有路径
                                .paths(PathSelectors.any())
                                //不包含^/inner/.*的路径
                                //.paths(input -> !input.matches("^/inner/.*"))
                                .build();
        return docket;
    }
    
    private ApiInfo apiInfo() {
        return new ApiInfoBuilder()
                       .title("小仙的RESTful APIs")
                       .description("构建RESTful APIs")
                       .termsOfServiceUrl("https://blog.csdn.net/weixin_43453386")
                       .contact(new Contact("小仙",
                               "https://blog.csdn.net/weixin_43453386",
                               "xxx@163.com"))
                       .version("1.0")
                       .build();
    }
}


*/
